package common

/*
 * @Desc: 静态定义
 * @author: 福狼
 * @version: v1.0.0
 */

// 项目
const (
	COMMON_PROJECT_NAME = "gf-games"        // 项目名
	COMMON_AUTH_SALT    = "GoFurry20250909" // 盐
	COMMON_AUTH_CURRENT = "currentUser"     // 当前用户
)

// 时间
const (
	TIME_FORMAT_DIGIT = "20060102150405"
	TIME_FORMAT_DATE  = "2006-01-02 15:04:05"
	TIME_FORMAT_DAY   = "2006-01-02"
)

// 状态标识
const (
	RETURN_FAILED           = 0 //失败
	RETURN_SUCCESS          = 1 //成功
	RETURN_RECORD_NOT_FOUND = "404"
)

// JWT
const (
	TOKEN_SECRET = "GolangNotFurryTho" // JWT密钥
)

// 常量
const (
	JWT_RELET_NUM     = 2 // JWT续租时间(小时)
	ONLINE_RELET_NUM  = 5 // 用户在线判定时间(分钟)
	EMAIL_CODE_LENGTH = 6 // 邮箱验证码长度
)

// 请求头
const (
	USER_AGENT      = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
	ACCEPT_LANGUAGE = "zh-CN,zh;q=0.9,en;q=0.8"
	APPLICATION     = "application/json"
)

// 事件
const (
	GLOBAL_MSG          = "GLOBAL_MSG"          // 全局事件
	COMMON_MSG          = "COMMON_MSG"          // 通用事件
	EVENT_STATUS_REPORT = "EVENT_STATUS_REPORT" // 状态上报事件
	EVENT_HEARTBEAT     = "EVENT_HEARTBEAT"     // 心跳事件
	EVENT_PING          = "EVENT_PING"          // Ping事件
)
